<#include "/template/_openwin.html" /> 
<#assign title="修改模块"> 
<@buttons>

<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-save'" onclick="save()">保存并关闭</a>
<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-cancel'" onclick="javascript:window.close()">取消</a>
</@buttons> 

<@body>

<div>
<form id="ff" method="post" action="${root!}/framemenu/update">  
<input type="hidden" name="menu.id" value="${menu.id!}" />
<input type="hidden" name="menu.menuCode" value="${menu.menuCode!}" />
<input type="hidden" name="parentId" value="${menu.parentId!}" />
            <table class="form-table">  
                <tr>  
                    <td width="25%">上级模块:</td>  
                    <td width="75%"><select id="cc" class="easyui-combotree" value="${menu.parentId!}" data-options="url:'${root!}/framemenu/leftTree'"  name="menu.parentId" style="width:156px;"/></td>  
                </tr>  
                <tr>  
                    <td>模块名称:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="text" value="${menu.menuName!}" name="menu.menuName" data-options="required:true"></input></td>  
                </tr>  
                <tr>  
                    <td>模块路径:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="text" value="${menu.menuUrl!}" name="menu.menuUrl" data-options="required:true"></input></td>  
                </tr>  
                <tr>  
                    <td>资源类型:</td>  
                    <td>
                    	<@select id="ss" name="menu.type" value="${menu.type!}" style="width:100px;" >
                    		<option value="MENU" selected="selected" >菜单</option>
                    		<option value="BTN" >按钮</option>
                    	</@select>
                    </td>  
                </tr>
                <tr>  
                    <td>排序号:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="number" value="${menu.order!}" name="menu.order" data-options="required:true"></input></td>  
                </tr>  
            </table>  
        </form>
</div>
</@body>
<script type="text/javascript">
	function save(){
		$('#ff').form('submit',{
			success:function(msg){
				window.returnValue="1";
				Alert.info(msg,"系统消息","close");
			}
		});
	}

	$(function(){
		$('#cc').combotree('setValue', '${menu.parentId!}');
	});

</script>